Each enum class has a valueOf() function that takes the string representation
of the constant name and returns the actual constant itself.
You can learn more about this in:
Tags: